<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
#cheshi{
    display: none;
/* display: block; */
}
    </style>
</head>
<body>
    <div>
        <input type="checkbox" name="" id="">
        <p id="liangzhou">两周内自动登录</p>
        <span id="cheshi">测试</span>
    </div>
</body>
</html>
<script>
     window.onload =function(){
        var arr =document.getElementById("liangzhou")
        var app = document.getElementById("cheshi");
        console.log(arr);
arr.onmouseover=function(){
    app.style.display="block"
    // console.log(2);
}
arr.onmouseout=function (){
    app.style.display="none"
}
     }

</script>